import request from '@/utils/request'

// 列表
export function listNotice(data) {
  return request({
    url: '/api/v1/iam/common/user/user-search-page',
    method: 'post',
    data: data
  })
}

// 详细
export function getNotice(data) {
  return request({
    url: '/inner-api/v1/iam/user/query',
    method: 'post',
    data: data
  })
}

// 新增
export function addNotice(data) {
  return request({
    url: '/inner-api/v1/iam/user/create-platform-user/with-create-role',
    method: 'post',
    data: data
  })
}

// 修改
export function updateNotice(data) {
  return request({
    url: '/inner-api/v1/iam/user/modify',
    method: 'post',
    data: data
  })
}

// 删除
export function delNotice(data) {
  return request({
    url: '/inner-api/v1/iam/user/remove',
    method: 'post',
    data: data
  })
}
